package com.carskeeper;

import com.alibaba.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.context.request.RequestContextListener;

//开启dubbo的自动配置
//测试gib
@EnableDubboConfiguration
@SpringBootApplication
@MapperScan("com.carskeeper.mapper")
public class BodyApplication {
    public static void main(String[] args) {
        SpringApplication.run(BodyApplication.class, args);
    }

    @Bean
    public RequestContextListener requestContextListener(){
        return new RequestContextListener();
    }
}
